import axios from '@/utils/request'
// import store from '@/store/index'
/**
 *  用户登录注册
 * @param {*} mobile
 * @param {*} code
 * @returns
 */
export const userLogin = (mobile, code) => {
  return axios({
    method: 'post',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code
    }
  })
}
/**
 * 获取用户个人信息
 *
 */
export const getUserInfo = () => {
  return axios({
    url: '/v1_0/user/profile'
    /*    headers: {
      Authorization: 'Bearer ' + store.state.user.token.token
    } */
  })
}
